$(function(){
    $(".start").click(function(){
       
        $("#alt").fadeIn(500)        
        // 让文字依次显示
        var n=0;
        var y=0;
        var arr = $('#alt span').text().split('')
        // console.log(arr)
        var time = setInterval(function(){
            $('#alt h6').append(arr[n])
            n++;                 
            if(n>arr.length-1){
                clearInterval(time)
             }      
        },150) 
        var dit = $('#alt h5').text().split('')
        // console.log(dit)
        setTimeout(function(){
            var time1 = setInterval(function(){
                $('#alt p.gz').append(dit[y])
                y++;
                if(y>dit.length-1){
                    clearInterval(time1)
                }
            },150)
        },1350)           
        setTimeout(function(){
            window.location.href="play.html"
        },3000)
    })
    $("img#ru").fadeIn(2000)
    $("img#lu").fadeIn(2000)
})